package com.ma.dao.user;

import com.ma.pojo.Role;
import com.ma.pojo.User;
import com.ma.utils.Constants;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

public interface UserDao {

    //得到要登录的用户
    public User getLoginUser(Connection connection,String userCode);

    //修改当前用户密码
    public int updatePwd(Connection connection,int id,String password) throws SQLException, Exception;

    //查询用户总数
    public int getUserCount(Connection connection,String userName,int userRole) throws SQLException;

    //通过条件查询-userlist
    public List<User> getUserList(Connection connection,String username,int userRole,int currentPageNo, int pageSize) throws Exception;


}
